package com.qfan.springaimcpdemo.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service
public class WeatherService {

    @Tool(description = "根据城市名称查询天气")
    public String getWeather(String cityName) {
        return cityName + "今天天气雷雨";
    }
}
